import { createApp } from 'vue';
import App from './App.vue';
//引入模板的全局的样式
import '@/assets/styles/index.scss';
//引入element-plus插件与样式
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// 暗黑模式样式
import 'element-plus/theme-chalk/dark/css-vars.css';
// 国际化配置
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import gloalComponent from '@/components';
import pinia from './store';

const app = createApp(App);
app.use(pinia);
app.use(router);
app.use(gloalComponent);

//全局引入Element-Plus
app.use(ElementPlus, {
  locale: zhCn,
});
import './permisstion.ts';

app.mount('#app');
